﻿cmake_minimum_required(VERSION 3.12)

project(quad_rbt)

# aris use c++ 17 standard
set(CMAKE_CXX_STANDARD 17)

# find aris
if(UNIX)
	add_definitions(-DUNIX)
        find_package(aris REQUIRED PATHS /usr/aris)
endif(UNIX)
IF(WIN32)
        find_package(aris REQUIRED PATHS C:/aris/aris-1.5.0)
endif(WIN32)
MESSAGE(STATUS "aris_lib at: ${aris_LIBRARIES}")
include_directories(${aris_INCLUDE_DIRS})

#set(JSON_BuildTests OFF CACHE INTERNAL "")
#add_subdirectory(nlohmann_json)

add_executable(quad_rbt src/main.cpp src/robot.cpp src/robot.h src/plan.cpp src/plan.h src/kinematics.cpp src/kinematics.h  "src/json.hpp")

if(UNIX)
    target_link_libraries(quad_rbt ${aris_LIBRARIES} atomic)
endif(UNIX)
IF(WIN32)
    target_link_libraries(quad_rbt ${aris_LIBRARIES})
endif(WIN32)

